<template lang="pug">
  van-nav-bar(
    :title="title",
    :left-text="ltext",
    :right-text="rtext",
    left-arrow,
    @click-left="closeHeadBar")
</template>

<script>
export default {
  name: 'headBar',
  props: {
    title: {
      type: String,
      default: ''
    },
    ltext: {
      type: String,
      default: ''
    },
    rtext: {
      type: String,
      default: ''
    }
  },
  methods: {
    closeHeadBar() {
      this.$emit('closeBar')
    }
  }
}
</script>

<style lang="stylus">

</style>
